<!--月应收表-->
<div class="form-inline">
    <div class="form-group">
        <input type="month" onchange="Page.change_month(this)" class="form-control" value="<?php echo yii::$app->request->get('m')?yii::$app->request->get('m'):date('Y-m');?>" />
    </div>
</div>
<br/>
<div class="col-lg-6 col-md-6 col-xs-6 col-sm-6">
    <b>编制单位：义乌市兢赛电子商务有限公司</b>
    <b style="margin-left:200px">单位:rmb</b>
    <table class="table table-borderd">
        <thead>
            <tr>
                <th>日期</th>
                <th>农行</th>
                <th>一达通</th>
            </tr>
        </thead>
        <?php $order_pay_sum=0;$clean_sum=0;$remain_sum=0;?>
        <?php for($i=31;$i>0;$i--):?>
            <tr>
                <td><?php echo $date = $this->params['m'].'-'.str_pad($i,2,0,STR_PAD_LEFT);?></td>
                <td><?php echo $this->params['list'][1][$date]['remain_money']??""?></td>
                <td><?php echo $this->params['list'][2][$date]['remain_money']??""?></td>
            </tr>
        <?php endfor;?>
    </table>
</div>
<script>
    Page.change_month=function(e){
        window.location.href="/table/finance?type=<?php echo $_GET['type']??4;?>&m="+e.value;
    }
</script>